import Phaser from "phaser";
import { PreloadScene } from "./scenes/PreloadScene";
import { PlayScene } from "./scenes/PlayScene";


const config: Phaser.Types.Core.GameConfig = {
    type: Phaser.AUTO,
    width: window.innerWidth-100,
    height: 340,
    pixelArt: true,
    transparent: true,
    parent: 'game',
    scene: [PreloadScene, PlayScene],
    physics: {
        default: 'arcade',
        arcade: {
            gravity:{ x: 0, y: 0}
        }
    },
    
    fps: {
        target: 40
    }
};

window.addEventListener('load', () => new Phaser.Game(config))